/**
重置element-ui样式
*/

// layout

.el-aside {
  background-color: #18314c;
  overflow: hidden;
}

.primary-card {
  .el-card__header {
    background: #304156;
    color: #fff;
    padding: 8px 12px 4px;
  }
  .el-card__body {
    padding: 0 20px;
  }
}

.el-icon-question {
  color: #909399;
}

.editInput {
  .el-input__inner {
    color: #333;
  }
}
.update.editInput {
  .el-input__inner {
    background-color: #dbf3f8;
  }
}

// radio
.el-radio-button__orig-radio:checked + .el-radio-button__inner {
  background-color: #1e344d;
  border-color: #1e344d;
  box-shadow: -1px 0 0 0 #1e344d;
}

.el-radio-button--mini .el-radio-button__inner {
  padding: 0.1rem;
  font-size: 0.16rem;
  color: #1e344d;
  line-height: 0.36rem;
  height: 0.36rem;
  padding: 0 0.08rem;
  span {
    line-height: 0.36rem;
    height: 0.36rem;
  }
}

// check-box
.el-checkbox {
  color: #333;
  margin-right: 0.08rem;
}
.el-checkbox__inner {
  // border-radius: 4px;
  border-color: #1e344d;

  // width: pxToRem(17);
  // height: pxToRem(17);
}
.el-checkbox__label {
  padding-left: 4px;
  line-height: 0.19rem;
  font-size: 0.14rem;
}
.el-checkbox__input.is-checked + .el-checkbox__label {
  color: #1e344d;
}
.el-checkbox__input.is-checked {
  .el-checkbox__inner {
    background-color: #fff;
    border-color: #1e344d;
  }
  .el-checkbox__inner {
    background: #1e344d;
    // border-color: #1e344d;
    // border-width: pxToRem(2);
    // border-radius: pxToRem(2);
    // height: pxToRem(7);
    // left: pxToRem(4);
    // top: pxToRem(1);
  }
}
.el-checkbox__input.is-focus {
  .el-checkbox__inner {
    border-color: #1e344d;
  }
}

// button
// .el-button.el-button--small.el-button--dark {
//   height: pxToRem(36);
//   line-height: pxToRem(36);
//   padding: 0 pxToRem(43);
// }
.el-button.active {
  color: #fff;
  background-color: #18314c;
  border-color: #1e344d;
}
.el-button.el-button--dark {
  color: #fff;
  background-color: #1e344d;
}

.el-button:focus,
.el-button:hover {
  color: #fff;
  background-color: #1e344d;
}

.foucs-off-btn,
.foucs-on-btn {
  width: 76px;
  height: 30px;
  border-radius: 3px;
}
.foucs-off-btn,
.foucs-off-btn:focus,
.foucs-off-btn:hover {
  background: rgba(30, 52, 77, 1);
  color: rgba(255, 255, 255, 1);
}
.foucs-on-btn,
.foucs-on-btn:hover,
.foucs-on-btn:focus {
  background: rgba(247, 247, 247, 1);
  color: rgba(218, 218, 218, 1);
}
// card
.el-card {
  border-radius: 5px;
  height: 100%;
}
.el-card.is-always-shadow {
  box-shadow: 0px 6px 24px 0px rgba(0, 0, 0, 0.08);
}
.el-table th div {
  line-height: 0.2rem;
}

// table
.el-table {
  border-radius: 5px;
  color: #333;

  th,
  td {
    color: #333;
  }
  td {
    padding: 0.1rem;
    font-size: 0.14rem;
  }

  thead {
    tr {
      th {
        background-color: rgba(241, 243, 246, 1);

        font-size: 0.16rem;
        font-weight: 500;
        padding: 0.1rem;
      }
      th.gutter {
        display: table-cell !important;
      }
    }
  }

  // 滚动条的宽度
  .el-table__body-wrapper::-webkit-scrollbar {
    width: 8px; // 横向滚动条
    height: 10px; // 纵向滚动条 必写
  }
  // 滚动条的滑块
  .el-table__body-wrapper::-webkit-scrollbar-thumb {
    background-color: #b9c6de;
    border-radius: 5px;
  }
}

.el-table--border {
  border-color: #cfd7e8;
  th.is-leaf,
  td,
  th {
    border-color: #cfd7e8;
    // padding: 14px 2px !important;
  }
}
.el-table__empty-block {
  min-height: 300px;
  .el-table__empty-text {
    padding-top: 40px;
    background-image: url();
    background-repeat: no-repeat;
    background-position: top center;
  }
}
// date
.el-date-table td.in-range div,
.el-date-table td.end-date div {
  background-color: #5376d0;
  color: #fff;
}
.el-date-table td.in-range div:hover {
  color: #333;
}
.el-date-table td.in-range.end-date div:hover,
.el-date-table td.in-range.start-date div:hover {
  background-color: #5376d0;
  color: #fff;
}
// .el-date-table td.in-range div,
// .el-date-table td.in-range div:hover,
// .el-date-table.is-week-mode .el-date-table__row.current div,
// .el-date-table.is-week-mode .el-date-table__row:hover div {
//   background-color: #5376d0;
// }
.el-date-table.is-week-mode .el-date-table__row.current div {
  background-color: #5376d0;
  color: #fff;
}

.el-date-table.is-week-mode .el-date-table__row:hover td:first-child div {
  margin-left: 5px;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}
.el-date-table.is-week-mode .el-date-table__row:hover td:last-child div {
  margin-right: 5px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}
.el-date-table td.end-date div {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}
.el-date-table td.start-date div {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

.el-date-table td.selected div {
  border-radius: 5px;
}

.el-date-table td.selected span {
  border-radius: 5px;
}

.el-picker-panel {
  color: #333;
}
.el-date-table td.next-month,
.el-date-table td.prev-month {
  color: #333;
}
.el-month-table td .cell {
  border-radius: 4px;
}
.el-month-table td.today .cell {
  background: #1e344d;
  color: #fff;
}
.el-month-table td.current:not(.disabled) .cell {
  background: #5376d0;
  color: #fff;
}
.el-date-table td span {
  border-radius: 4px;
}
.el-date-table td.today span {
  background-color: #1e344d;
  color: #fff;
}

.el-date-table td.end-date span,
.el-date-table td.start-date span {
  background-color: #5376d0;
}

// confim dialog
.el-message-box {
  .el-message-box__title {
    font-size: 0.18rem;
    font-weight: 500;
    color: rgba(51, 51, 51, 1);
  }
  .el-message-box__message {
    font-size: 0.14rem;
    font-weight: 400;
    color: rgba(51, 51, 51, 1);
  }
  .el-button {
    width: 0.76rem;
    height: 0.36rem;
    line-height: 0.36rem;
    padding: 0;
  }
  .el-button--primary {
    color: #fff;
    background-color: #1e344d;
  }
}

// message
.el-message {
  min-width: 3.73rem;
  padding: 0 0.23rem;
  height: 0.5rem;
  line-height: 0.5rem;

  .el-message__content {
    font-size: 0.14rem;
    font-weight: 500;
  }
  .el-message__icon {
    font-size: 0.16rem;
  }
}

.el-message--success {
  background-color: rgba(217, 242, 232, 1);
  border-color: rgba(196, 239, 222, 1);
  .el-message__content {
    color: #3ead80;
  }
  .el-message__icon {
    color: #3ead80;
  }
}
.el-message--info {
  background-color: rgba(207, 221, 231, 1);
  border-color: rgba(207, 219, 229, 1);
  .el-message__icon {
    color: #496a90;
  }
  .el-message__content {
    color: #1e344d;
  }
}
.el-message--error {
  background-color: rgba(247, 235, 235, 1);
  border-color: rgba(225, 178, 178, 1);
  .el-message__icon {
    color: #dd4646;
  }
  .el-message__content {
    color: #dd4646;
  }
}
